package units;

import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.image.BufferedImage;
import java.io.FileInputStream;
import java.io.IOException;

import javax.imageio.ImageIO;

import map.Map;

public class GrassUnit extends AUnit {
	static FileInputStream is;
	static BufferedImage bf;
	
	public GrassUnit(int x, int y, Map map) {
		super(x, y, map);
		setPriority(4);
		rect = null;
		try {
			is = new FileInputStream("C:\\Users\\monushka\\Desktop\\BattleCity\\mine\\grass.png");
			bf = ImageIO.read(is);
		} catch (IOException e) {
				e.printStackTrace();
		}
	}

	@Override
	public void draw(Graphics g) {
		g.drawImage(bf, _y,_x, null);
	}

}
